
package de.swta.freezay.components;

import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.link.AbstractLink;
import org.apache.wicket.markup.html.panel.Panel;

/**
 * A Panel to display 2 links 
 *
 * @author Jan Korreck
 */
public class ExtendedActionPanel extends Panel {

    /**
     * Constructor
     *
     * @param id the markupID
     * @param actionLink1 first action link
     * @param linkText1 first action link text
     * @param actionLink2 second action link
     * @param linkText2 second action link text
     */
    public ExtendedActionPanel(final String id, final AbstractLink actionLink1,
            final String linkText1, final AbstractLink actionLink2,
            final String linkText2) {
        
        super(id);

        /* set up the correct markup id of the first action link */
        actionLink1.setMarkupId("select1");
        /* add link to page */
        add(actionLink1);
        /* add the action link text to the link component */
        actionLink1.add(new Label("linkText1", linkText1));

        /* set up the correct markup id for the second action link */
        actionLink2.setMarkupId("select2");
        /* add link to page */
        add(actionLink2);
        /* add the action link text to the link component */
        actionLink2.add(new Label("linkText2", linkText2));
    }

}
